const Koa = require('koa');
const serve = require('koa-static');
const path = require('path');
const chalk = require('chalk');

const PORT = 8000;
const HOST = 'localhost';

const app = new Koa();

app.use(serve(path.join(__dirname, '/dist'))).listen(PORT, () => {
console.log(
    '\n' +
    chalk.bgGreen.black(' OPEN ') +
    ' Server listening on ' +
    chalk.green(`http://${HOST}:${PORT}\n`)
);
});